﻿@{
    ViewBag.Title = "DanhSach";
    Layout = "~/Views/MasterPage/Main.cshtml";
}
@model MvcApplication1.Models.KhachHangModel

<h4>Danh sách khách hàng</h4>


<table class="feedback-table">
    <colgroup>
        <col width="5%">
		<col width="15%">
		<col width="15%">
		<col width="20%">
        <col width="15%">
        <col width="*">
	</colgroup>
	<thead>
		<tr> 
			<th>STT</th>
			<th>Tên tài khoản</th>
			<th>Họ tên</th>
            <th>Email</th>
            <th>Số điện thoại</th>
            <th>Địa chỉ</th>
		</tr>
	</thead>
	<tbody>
        <tr>
         @{
             int i = 1;
             foreach (var khachHang in ViewBag.dsKhachHangModels)
            {
                <tr>
                    <td>@i</td>
                    <td>@khachHang.tenDangNhap</td>
                    <td>@khachHang.hoTen</td>
                    <td>@khachHang.email</td>
                    <td>@khachHang.soDienThoai</td>
                    <td>@khachHang.diaChi</td>
                </tr>
                i = i + 1;
            }
        }
        </tr>
    </tbody>
</table>

